package com.Market;

public class Market {
	private Product[] productlist;

	private String name;

	public Product sell(String proName){

		for(int i=0;i<productlist.length;i++){

    		if( productlist[i].getProductName().equals(proName)){

    			return productlist[i];

	        }

		}

		return null;

	}

	public String getName(){

		return name;

	}

    public void setName(String name){

    	this.name = name;

    }

    public Product[] getProductList(){

    			return productlist;

    		}

    public void setProductList(Product[] productList){

    	this.productlist =productList;

    }


}
